csrf token laravel

54

ajax csrf token laravel -

data: {
        "_token": "{{ csrf_token() }}",
        "id": id
        }

laravel meta csrf -

$.ajaxSetup({
   headers: {
     'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
   }
});

Comments

Submit
0 Comments